package com.example.blog_system_ssm.mapper;

import com.example.blog_system_ssm.model.ArticleInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DraftMapper {
    public int add(@Param("uid") Long uid,@Param("aid") Long aid,@Param("title") String title,@Param("content") String content);
    public List<ArticleInfo> getMyDraftList(@Param("uid") Long uid);

    public int delete(@Param("aid") Long aid, @Param("uid") Long uid);

    public ArticleInfo getDetail(@Param("aid") Long aid,@Param("uid") Long uid);

    public int update(@Param("aid") Long aid, @Param("uid") Long uid, @Param("title") String title, @Param("content") String content);

    public int submit(@Param("uid") Long uid,@Param("aid") Long aid,@Param("title") String title,@Param("content") String content);
}
